﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows;

namespace ShapeDemo
{

    public enum ECanvas { Polygon, Point}

    public enum TMouse { Point,Drawing }

    public class ResourceCenter
    {
        public static ASPNETX_WPFPolygon NewPolygon()
        {
            ASPNETX_WPFPolygon pgBody = new ASPNETX_WPFPolygon();
            pgBody.PolygonBody.Stroke = new SolidColorBrush(Colors.Black);
            pgBody.PolygonBody.StrokeThickness = 2;
            pgBody.PolygonBody.Fill = new SolidColorBrush(Colors.Blue);
            pgBody.PolygonBody.Opacity = 0.1;
            pgBody.PolygonBody.Points.Add(new Point());

            return pgBody;
        }
    }
}
